package com.account.dto;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 帐目信息
 * @author guoming.zong
 *
 */
public class AccountDto implements Serializable {

  /**
   * 
   */
  private static final long serialVersionUID = 1L;

  // 主键id
  private Long id;

  // 1-支入  2-支出
  private Integer type;

  // type对应的名称
  private String typeName;

  // 钱
  private BigDecimal money;

  // 备注
  private String comment;

  // 创建时间
  private String createDate;

  // 创建人
  private String creator;

  // 修改时间
  private String updateDate;

  // 修改人
  private String updator;

  private Long pageSize;

  private Long pageNumber;

  private Long start;

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Integer getType() {
    return type;
  }

  public void setType(Integer type) {
    this.type = type;
  }

  public String getTypeName() {
    return typeName;
  }

  public void setTypeName(String typeName) {
    this.typeName = typeName;
  }

  public BigDecimal getMoney() {
    return money;
  }

  public void setMoney(BigDecimal money) {
    this.money = money;
  }

  public String getComment() {
    return comment;
  }

  public void setComment(String comment) {
    this.comment = comment;
  }

  public String getCreateDate() {
    return createDate;
  }

  public void setCreateDate(String createDate) {
    this.createDate = createDate;
  }

  public String getCreator() {
    return creator;
  }

  public void setCreator(String creator) {
    this.creator = creator;
  }

  public String getUpdateDate() {
    return updateDate;
  }

  public void setUpdateDate(String updateDate) {
    this.updateDate = updateDate;
  }

  public String getUpdator() {
    return updator;
  }

  public void setUpdator(String updator) {
    this.updator = updator;
  }

  public Long getPageSize() {
    return pageSize;
  }

  public void setPageSize(Long pageSize) {
    this.pageSize = pageSize;
  }

  public Long getPageNumber() {
    return pageNumber;
  }

  public void setPageNumber(Long pageNumber) {
    this.pageNumber = pageNumber;
  }

  public Long getStart() {
    if (this.pageSize != null && this.pageNumber != null) {
      return (this.pageNumber - 1) * this.pageSize;
    } else {
      this.start = 0l;
    }
    return start;
  }

  public void setStart(Long start) {
    this.start = start;
  }

}
